package com.green.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.green.converter.GenderConverter;
import lombok.Data;

import java.time.LocalDate;

@Data
public class MyUser {

    @ExcelProperty(value = "姓名",index = 0)
    private String name;

    @ExcelProperty(value = "性别",index = 1,converter = GenderConverter.class)
    private Integer gender;

    @ExcelProperty(value = "出生日期",index = 2)
    @DateTimeFormat("yyyy-MM-dd")
    private LocalDate birthday;
}
